Range

Function

This API is used for get Thermal > Fire Detection parameter scale

Request Message

Parameter Description

Table 1

ParameterRangeTypedescription
channel"CH1"…"CHx",
"IP_CH1"…"IP_CHx",
"WIFI_CH1"…"WIFI_CHx"
Channels supported by the device
string arrayIPC can only use "CH1".
page_type“ChannelConfig”
“AlarmConfig”
stringData used to distinguish between the channel configuration page and the alarm configuration page
DeleteIdint arrayid to be deleted (Currently supported id numbers 1 to 8)

Sample:

POST /API/Thermal/Setup/FireDetection/Range HTTP/1.1
{
    "version": "1.0",
    "data":{
        "page_type":"ChannelConfig"
        }

}

Response Message

Parameter Description

Table 2

ParameterRangeTypedescription
channel_infoJson ObjectChannel information see Table 3
page_type"ChannelConfig", "AlarmConfig"stringThe data used to distinguish between the channel configuration page and the alarm configuration page is only needed when setting.
channel_maxintTotal number of channels on the device

Table 3

ParameterRangeTypedescription
CH1Json ObjectJSON See Table 4
...Json Object
IP_CH1Json Object
...Json Object
WIFI_CH1Json Object
...Json Object

Table 4

ParameterRangeTypedescription
status"Offline"
"Online"
stringChannel online status, only for digital channels.
Note: This field does not exist when the channel is online
detectionJson ObjectJson For information see Table 5
region_shieldJson ObjectJson For information see Table 6
alarm_out“Local->1”
”Local->x”
“IP_CH1->1”
“IP_CH1->2”
” IP_CHx->1”
” IP_CHx->2”...
The number of channels depends on the performance of the device
arrayAlarm output channel
latch_time"5s","10s","20s","30s"stringAlarm output time Ipc value 5 10 20 30
record_enableboolSupports channel video switch
post_recording"OFF","5s","10s","20s","30s"stringVideo delay time Ipc value 0 5 10 20 30
send_emailtrue, falseboolSend Email switch
ftp_picture_uploadtrue, falseboolFTP upload switch of channel capture
ftp_video_uploadtrue, falseboolChannel video FTP upload switch
picture_to_cloudtrue, falseboolPicture upload switch
video_to_cloudtrue, falseboolVideo cloud upload switch
light_linkagetrue, falseboolLinkage switch of the white light. When motion is triggered, the linkage triggers the white light
enforcerlight_linkagetrue, falseboolRed and blue light alarm switch
siren_linkagetrue, falseboolsiren alarm switch
http_listeningtrue, falseboolPush switch
record_channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…”
WIFI_CH1x”
arrayVideo alarm output channel
ftp_picture_upload_channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…”
WIFI_CH1x”
arrayCapture image FTP upload alarm output channel
ftp_video_upload_channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…”
WIFI_CH1x”
arrayVideo FTP upload alarm output channel
picture_cloud_channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…”
WIFI_CH1x”
arrayImage upload alarm output channel
video_cloud_channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…”
WIFI_CH1x”
arrayVideo cloud upload alarm output channel
scheduleJSON arraySchedule see Table 7

Table 5

ParameterRangeTypedescription
switchtrue falseboolfunction switch
sensitivity[1,100]intsensitivity

Table 6

ParameterRangeTypedescription
region_area_infoJson arrayJson see Table 8

Table 7

ParameterRangeTypedescription
schedule_type“Record”stringtime schedule:Record,AlarmOut,SendEmail
weekJSON arrayweek json see Table 9

Table 8

ParameterRangeTypedescription
id_switchtrue falseboolZone function switch
area_id[0,8]intid of the current area
area_namestringEditable box, default name is Fire Mark with serial number
point_num[min,max]arrayThe number of points drawn in the area is a minimum of 3 points and a maximum of 8 points
rule_areaJson ObjectJson see Table 10

Table 9

ParameterRangeTypedescription
daySun,Mon,Tue,Wed
Thu,Fri,Sat
stringMark the day of the week
time0: disables the time range
1: enables the time range
arrayEach array bit identifies half an hour

Table 10

ParameterRangeTypedescription
x1[0,704]intx1 coordinate point
y1[0,576]inty1 coordinate point
x2[0,704]intx2 coordinate point
y2[0,576]inty2 coordinate point
x3[0,704]intx3 coordinate point
y3[0,576]inty3 coordinate point
x4[0,704]intx4 coordinate point
y4[0,576]inty4 coordinate point
x5[0,704]intx5 coordinate point
y5[0,576]inty5 coordinate point
x6[0,704]intx6 coordinate point
y6[0,576]inty6 coordinate point
x7[0,704]intx7 coordinate point
y7[0,576]inty7 coordinate point
x8[0,704]intx8 coordinate point
y8[0,576]inty8 coordinate point

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel_max": 1,
        "channel_info": {
            "type": "object",
            "items": {"CH2": {
                "type": "object",
                "items": {
                    "status": {
                        "description": "Only offline channel has this variable.",
                        "type": "string",
                        "mode": "r",
                        "items": [
                            "Offline",
                            "Online"
                        ]
                    },
                    "detection": {
                        "type": "object",
                        "items": {
                            "switch": {"type": "bool"},
                            "sensitivity": {
                                "type": "int32",
                                "min": 1,
                                "max": 100
                            }
                        }
                    },
                    "region_shield": {
                        "type": "object",
                        "items": {"region_area_info": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 8,
                            "items": [{
                                "id_switch": {
                                    "type": "bool",
                                    "mode": "r"
                                },
                                "area_id": {
                                    "type": "int32",
                                    "mode": "r",
                                    "min": 0,
                                    "max": 8,
                                    "default_value": 0
                                },
                                "area_name": {
                                    "type": "string",
                                    "mode": "r",
                                    "min_len": 1,
                                    "max_len": 127,
                                    "default_value": "Fire Mark1"
                                },
                                "point_num": {
                                    "type": "array",
                                    "size": 2,
                                    "items": []
                                },
                                "rule_area": {
                                    "type": "object",
                                    "items": {
                                        "x1": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 704
                                        },
                                        "x2": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 704
                                        },
                                        "x3": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 704
                                        },
                                        "x4": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 704
                                        },
                                        "x5": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 704
                                        },
                                        "x6": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 704
                                        },
                                        "x7": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 704
                                        },
                                        "x8": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 704
                                        },
                                        "y1": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 576
                                        },
                                        "y2": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 576
                                        },
                                        "y3": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 576
                                        },
                                        "y4": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 576
                                        },
                                        "y5": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 576
                                        },
                                        "y6": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 576
                                        },
                                        "y7": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 576
                                        },
                                        "y8": {
                                            "type": "int32",
                                            "min": 0,
                                            "max": 576
                                        }
                                    }
                                }
                            }]
                        }}
                    }
                }
            }}
        }
    }
}

Error Code

See Response message body and general error_code for more information.